//
//  HGDB.h
//  中关村在线
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "News.h"
@interface HGDB : NSObject

{
    sqlite3 *dbPoint;
}

//创建单例对象

+ (HGDB *)sharedHGDB;

//打开数据库

- (void)openHGDB;

//创建表格

- (void)createTable;

//插入数据
- (void)insertData:(News *)model;

//删除数据

- (void)deleteData:(News *)model;

//修改数据

- (void)updateData:(News *)model;

// 查询number数据

- (NSMutableArray *)selectData;

//查询所有数据

- (NSMutableArray *)selectDataAll;


@end
